package com.uwo.house.dao;

import com.uwo.house.beans.request.VisitOrderReq;
import com.uwo.house.beans.response.VisitOrderResp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Created by YZYG on 2017/7/14.
 */
@Repository
public interface VisitOrderDao {
    int orderVisit(VisitOrderReq visitOrderReq);

    List<VisitOrderResp> getVisitOrderList(@Param("userId") String userId,
                                           @Param("dateFrom") Date dateFrom,
                                           @Param("dateTo") Date dateTo);

    int deleteVisitOrder(String id);

    String getSampleHouseAddress(int houseId);

}
